<template>
  <view
    class="uni-grid-item">
    <view><slot /></view>
  </view>
</template>

<script>
export default {
  name: 'UniGridItem',
  inject: ['grid'],
  data () {
    return {
      width: '50%',
      borderColor: '#d0dee5'
    }
  },
  created () {

  },
  // #ifdef H5
  mounted () {
    this.grid._getSize(width => {
    //  this.width = width
    })
  },
  // #endif
  // #ifndef H5
  onReady () {
    this.grid._getSize(width => {
     // this.width = width
    })
  },
  // #endif
}
</script>

<style lang="scss">
.uni-grid-item {
	box-sizing: border-box;width: 100%;
}
</style>
